import request from '@/utils/request'

// 查询文本段落列表
export function listParagraph(query) {
  return request({
    url: '/recitation/paragraph/list',
    method: 'get',
    params: query
  })
}

// 查询文本段落详细
export function getParagraph(paragraphId) {
  return request({
    url: '/recitation/paragraph/' + paragraphId,
    method: 'get'
  })
}

// 新增文本段落
export function addParagraph(data) {
  return request({
    url: '/recitation/paragraph',
    method: 'post',
    data: data
  })
}

// 修改文本段落
export function updateParagraph(data) {
  return request({
    url: '/recitation/paragraph',
    method: 'put',
    data: data
  })
}

// 删除文本段落
export function delParagraph(paragraphId) {
  return request({
    url: '/recitation/paragraph/' + paragraphId,
    method: 'delete'
  })
}
